package day12.afternoon;

/**
 * 比赛
 */
public class Match {
    public void competitionForDiveAthlete(Dive dive){
        dive.dive();
    }
    public void competitionForSorintAthlete(Sprint sprint){
        sprint.sprint();
    }
    public void competitionForShootAthlete(Shoot shoot){
        shoot.shoot();
    }

    public static void main(String[] args) {
        Match match = new Match();
        match.competitionForDiveAthlete(new DiveAthlete("张飞",20));
        match.competitionForSorintAthlete(new SprintAthlete("关羽",25));
        match.competitionForShootAthlete(new ShootAthlete("刘备",30));
        match.competitionForDiveAthlete(new AlmightyAthlete("吕布",25));
        match.competitionForSorintAthlete(new AlmightyAthlete("吕布",25));
        match.competitionForShootAthlete(new AlmightyAthlete("吕布",25));

    }
}
